package com.maven.zh.dao;

import java.util.List;
import java.util.Map;

import com.maven.zh.bean.Datas;
import com.maven.zh.bean.Manager;
import com.maven.zh.bean.Permission;

public interface ManagerDao {

	Manager selectManager4Login(Manager manager);

	List<Permission> queryPermissionsByManager(Manager loginManager);

	void deleteBatManagers(Datas ds);

	int deleteManagerById(Integer id);

	List<Manager> queryManager4Page(Map<String, Object> paramMap);

	int queryManagerCount4Page(Map<String, Object> paramMap);

	Manager queryManagerById(Integer id);

	int updateManager(Manager manager);

	void insertManager(Manager manager);

	List<Integer> queryRoleIdsByManagerId(Integer id);

	void insertManagerRoles(Map<String, Object> paramMap);

	void deleteManagerRoles(Map<String, Object> paramMap);

}
